﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Delay
{
    public class TypeCommentItem : INotifyPropertyChanged
    {
        private int _id;
        public int Id
        {
            get
            {
                return _id;
            }
            set
            {
                if (_id != value)
                {
                    _id = value;
                    NotifyPropertyChanged("Id");
                }
            }
        }
        //
        private string _floor;
        public string Floor
        {
            get
            {
                return _floor;
            }
            set
            {
                if (_floor != value)
                {
                    _floor = value;
                    NotifyPropertyChanged("Floor");
                }
            }
        }
        //
        private int _support;
        public int Support
        {
            get
            {
                return _support;
            }
            set
            {
                if (_support != value)
                {
                    _support = value;
                    NotifyPropertyChanged("Support");
                }
            }
        }
        //
        private int _oppose;
        public int Oppose
        {
            get
            {
                return _oppose;
            }
            set
            {
                if (_oppose != value)
                {
                    _oppose = value;
                    NotifyPropertyChanged("Oppose");
                }
            }
        }
        //
        private string _score;
        public string Score
        {
            get
            {
                return _score;
            }
            set
            {
                if (_score != value)
                {
                    _score = value;
                    NotifyPropertyChanged("Score");
                }
            }
        }
        //
        private int _userid;
        public int Userid
        {
            get
            {
                return _userid;
            }
            set
            {
                if (_userid != value)
                {
                    _userid = value;
                    NotifyPropertyChanged("Userid");
                }
            }
        }
        //
        private string _nick;
        public string Nick
        {
            get
            {
                return _nick;
            }
            set
            {
                if (_nick != value)
                {
                    _nick = value;
                    NotifyPropertyChanged("Nick");
                }
            }
        }
        //
        private string _advant;
        public string Advant
        {
            get
            {
                return _advant;
            }
            set
            {
                if (_advant != value)
                {
                    _advant = value;
                    NotifyPropertyChanged("Advant");
                }
            }
        }
        //
        private string _defect;
        public string Defect
        {
            get
            {
                return _defect;
            }
            set
            {
                if (_defect != value)
                {
                    _defect = value;
                    NotifyPropertyChanged("Defect");
                }
            }
        }
        //
        private string _addtime;
        public string Addtime
        {
            get
            {
                return _addtime;
            }
            set
            {
                if (_addtime != value)
                {
                    _addtime = value;
                    NotifyPropertyChanged("Addtime");
                }
            }
        }
        //
        private string _type;
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                if (_type != value)
                {
                    _type = value;
                    NotifyPropertyChanged("Type");
                }
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
